package com.pctx.bibaregisterlogin.eccontroller;

import com.pctx.bibacommon.result.Result;
import com.pctx.bibaregisterlogin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chason on 2018/3/13.14:18
 */
@EnableEurekaClient
@RestController
@RequestMapping("ecUser")
public class EcUserController {
    @Autowired
    private UserService userService;

    @GetMapping("getByUuid")
    public Result getByUuid(@RequestParam(value = "uuid") String uuid)throws Exception{
        return userService.getByUuid(uuid);
    }
}
